function body_onload() {
//    addEvent($get("lnk_test"), "click", test());
//    alert($get("ctl00_ContentPlaceHolder1_btn_asp_update").id);
//    alert($get("<%= btn_asp_update.ClientID %>"));
//    addEvent($get("btn_sub_update"), "click", postback)
//    addEvent($get("ctl00_ContentPlaceHolder1_btn_asp_update"), "click", display);
//    alert("page open");
//    alert(parent.jsObjectFromJson[0].Value);
    setContent(); 
}

function test() {
    alert(100);
   return false; 
}

//function postback() {
//    $get("lbl_sub_display").innerText = $get("txt_sub_input").value;
//}

//function display() {
//    __doPostBack('UpdatePanel1', '');
//    $get("lbl_sub_display").innerText = $get("txt_sub_input").value;
//}

function setContent() {
//    alert(location.href.indexOf("IntroPage"));
//    alert(location.href.indexOf("bizservice"));
    if (location.href.indexOf("IntroPage") > 0) {
        document.getElementById("lbl_Intro1").innerText = "intro: " + parent.jsObjectFromJson[1].Value;
    } else if (location.href.indexOf("bizservice") > 0) {
        document.getElementById("lbl_BizService").innerText = "Biz: " + parent.jsObjectFromJson[2].Value;
    }
    
}

function addEvent(elm, evt, fn) {
    try {
	    elm.addEventListener(evt, fn, false);
    } catch(e) {
	    elm.attachEvent("on" + evt, fn);
    }
}

//addEvent(window, "load", mp_onload);
addEvent(window, "load", body_onload);